// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** Area history data GET /v1/device/history/area */
export async function historyDataControllerAreaHistoryData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerAreaHistoryDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationAreaPageDataDTO>(`${apiPrefix}/v1/device/history/area`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Bms history data GET /v1/device/history/bms */
export async function historyDataControllerBmsHistoryData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerBmsHistoryDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationBmsPageDataDTO>(`${apiPrefix}/v1/device/history/bms`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Bmu history data GET /v1/device/history/bmu */
export async function historyDataControllerBmuHistoryData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerBmuHistoryDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationBmuPageDataDTO>(`${apiPrefix}/v1/device/history/bmu`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Box history data GET /v1/device/history/box */
export async function historyDataControllerBoxHistoryData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerBoxHistoryDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationBoxPageDataDTO>(`${apiPrefix}/v1/device/history/box`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Box overview history data GET /v1/device/history/box/overview */
export async function historyDataControllerBoxOverviewHistoryData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerBoxOverviewHistoryDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationBoxPageDataDTO>(
    `${apiPrefix}/v1/device/history/box/overview`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 充电桩数据 GET /v1/device/history/charge */
export async function historyDataControllerChargeDataPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerChargeDataPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationChargeRealTimeData>(
    `${apiPrefix}/v1/device/history/charge`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 充电桩数据概况 GET /v1/device/history/charge/overview */
export async function historyDataControllerChargeOverviewPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerChargeOverviewPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationDeviceOverviewDTO>(
    `${apiPrefix}/v1/device/history/charge/overview`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** Cluster history data GET /v1/device/history/cluster */
export async function historyDataControllerClusterHistoryData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerClusterHistoryDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationClusterPageDataDTO>(
    `${apiPrefix}/v1/device/history/cluster`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** History data export POST /v1/device/history/export */
export async function historyDataControllerHistoryDataExport(
  body: API.HistoryDataQuery,
  options?: { [key: string]: any },
) {
  return request<any>(`${apiPrefix}/v1/device/history/export`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 储能柜总控制器数据 GET /v1/device/history/glc */
export async function historyDataControllerGlcDataPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerGlcDataPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationGlcRealTimeData>(`${apiPrefix}/v1/device/history/glc`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 储能柜总控制器数据概况 GET /v1/device/history/glc/overview */
export async function historyDataControllerGlcOverviewPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerGlcOverviewPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationDeviceOverviewDTO>(
    `${apiPrefix}/v1/device/history/glc/overview`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 逆变器数据 GET /v1/device/history/inverter */
export async function historyDataControllerInverterDataPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerInverterDataPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationInverterRealTimeData>(
    `${apiPrefix}/v1/device/history/inverter`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 逆变器数据概况 GET /v1/device/history/inverter/overview */
export async function historyDataControllerInverterOverviewPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerInverterOverviewPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationDeviceOverviewDTO>(
    `${apiPrefix}/v1/device/history/inverter/overview`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 储能柜控制器数据 GET /v1/device/history/lc */
export async function historyDataControllerLcDataPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerLcDataPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationLcRealTimeData>(`${apiPrefix}/v1/device/history/lc`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 电表数据 GET /v1/device/history/meter */
export async function historyDataControllerMeterDataPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerMeterDataPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationMeterRealTimeData>(`${apiPrefix}/v1/device/history/meter`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 电表数据概况 GET /v1/device/history/meter/overview */
export async function historyDataControllerMeterOverviewPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerMeterOverviewPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationDeviceOverviewDTO>(
    `${apiPrefix}/v1/device/history/meter/overview`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** PCS数据 GET /v1/device/history/pcs */
export async function historyDataControllerPcsDataPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerPcsDataPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationPcsRealTimeData>(`${apiPrefix}/v1/device/history/pcs`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** PCS数据概况 GET /v1/device/history/pcs/overview */
export async function historyDataControllerPcsOverviewPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerPcsOverviewPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationDeviceOverviewDTO>(
    `${apiPrefix}/v1/device/history/pcs/overview`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** PCS控制器数据 GET /v1/device/history/pcsctl */
export async function historyDataControllerPcsCtlDataPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerPcsCtlDataPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationPcsctlRealTimeData>(
    `${apiPrefix}/v1/device/history/pcsctl`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** PCS控制器数据概况 GET /v1/device/history/pcsctl/overview */
export async function historyDataControllerPcsCtlOverviewPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerPcsCtlOverviewPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationDeviceOverviewDTO>(
    `${apiPrefix}/v1/device/history/pcsctl/overview`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** Station history data GET /v1/device/history/station */
export async function historyDataControllerStationHistoryData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerStationHistoryDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationStationHistoryDataDTO>(
    `${apiPrefix}/v1/device/history/station`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 变压器数据 GET /v1/device/history/transformer */
export async function historyDataControllerTransDataPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerTransDataPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationTransRealTimeData>(
    `${apiPrefix}/v1/device/history/transformer`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 变压器数据概况 GET /v1/device/history/transformer/overview */
export async function historyDataControllerTransOverviewPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.historyDataControllerTransOverviewPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationDeviceOverviewDTO>(
    `${apiPrefix}/v1/device/history/transformer/overview`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}
